<?php

class McCube_Exception_DbQueryError extends McCube_Exception{

    protected $dirPath = '';

    /** */
    public function __construct($dbQuery, $dbError){
        $this->dbQuery = $dbQuery;
        $this->dbError = $dbError[2];

        parent::__construct(
            'Error with SQL Query [ '.$dbQuery.' ] !'
        );
    }

    /** */
    public function renderHTML(){
        return ''
            .'Problem with SQL Query'
            .'<br />- Error : [ <em style="color:green;">'.$this->dbError.'</em> ]'
            .'<br />- Query : <em style="color:black;">'.$this->dbQuery.'</em>'

        ;
    }



}